package xyz.xmh.pattern.j2ee.interceptingfilterpattern;

/**
 * 过滤器模式演示
 *
 * @author admin
 */
public class InterceptingFilterPatternDemo {

    public static void main(String[] args) {
        final FilterChain filterChain = new FilterChain(new Target());
        // 添加过滤器
        filterChain.addFilter(new AuthenticationFilter());
        filterChain.addFilter(new LogFilter());
        // 处理请求
        filterChain.execute("Home");
    }

}
